package com.dididoctor.patient.Dialog;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.dididoctor.patient.MV.BaseDialog;
import com.dididoctor.patient.R;

public class TipTopicDialog extends BaseDialog {
    private TextView mTvConfirm, mTvCancel;

    public TipTopicDialog(Context context) {
        super(context);
        setContentView(R.layout.dialog_tiptopic);
        mTvConfirm = (TextView) findViewById(R.id.tv_confirm);
        mTvConfirm.setOnClickListener(this);
        mTvCancel = (TextView) findViewById(R.id.tv_cancel);
        mTvCancel.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_confirm:
                dismiss();
                break;
            case R.id.tv_cancel:
                dismiss();
                break;
            default:
                break;
        }
        super.onClick(v);
    }

}
